package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统角色表
 */
@Schema(description="系统角色表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_role")
public class Role implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 角色ID，主键
     */
    @TableId(value = "rid", type = IdType.AUTO)
    @Schema(description="角色ID，主键")
    private Integer rid;

    /**
     * 角色名称
     */
    @TableField(value = "rname")
    @Schema(description="角色名称")
    private String rname;

    /**
     * 角色描述
     */
    @TableField(value = "remark")
    @Schema(description="角色描述")
    private String remark;
}